<template>
	<view class="certification">
		<view class="header">
			<view class="search-image">
				<input class="search" placeholder="请输入关键字查询" />
				<image src="../../../static/批量文件搜索.png"></image>
			</view>
			<view class="exhibition">
				<view class="content">
					鱼泡测试鱼泡测试鱼泡测试
					<view class="num" style="color: #ff0000;">123113</view>
				</view>
			</view>
		</view>
		<view class="all">
			<view v-for="(item,index) in dataList" :key="index">
				<view @click="goDetail" class="card">
					<view class="title">
						施工三级
					</view>
					<view class="company">
						有限公司
					</view>
					<view class="credential">
						<view class="num">证书编号:
							<span>C12314654513216</span>
						</view>
						<view class="time">有效期至:
							<span>2019-05-09</span>
						</view>
					</view>
					<view class="grant">
						发证机关:
						<span>江苏省</span>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList: [1, 2, 3]
			}
		},
		methods:{
			goDetail(){
				uni.navigateTo({
					url:"../architecturedetails/architectureDetails"
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.certification {
		.header {
			width: 100vw;
			position: fixed;
			background: #007AFF;

			.search-image {
				position: relative;
				display: flex;
				align-items: center;
				justify-content: center;
				padding-bottom: 10rpx;

				.search {
					width: 80vw;
					padding: 10rpx 20rpx;
					background: #FFFFFF;
					border-radius: 20rpx;
				}

				image {
					width: 40rpx;
					height: 40rpx;
					position: absolute;
					right: 80rpx;
				}
			}

			.exhibition {
				background: #dadada;
				display: flex;
				justify-content: space-between;
				padding: 20rpx;

				.content {
					display: flex;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
				}
			}
		}

		.all {
			padding-top: 140rpx;
			.card {
				padding: 20rpx;
				border-bottom: solid 1px #C0C4CC;
				.title {
					padding: 10rpx 0;
				}
				.company{
					color: #676767;
					padding: 10rpx 0;
				}
				.credential {
					padding: 10rpx 0;
					color: #676767;
					display: flex;
					.num {
						width: 360rpx;
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
						margin-right: 10rpx;
					}
				}
				.grant{
					padding: 10rpx 0;
					color: #676767;
				}
			}
		}

	}
</style>
